package com.app.repository.interfaces;

import com.app.model.main.TopAndCoinArticle;

public interface TopAndCoinArticleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TopAndCoinArticle record);

    int insertSelective(TopAndCoinArticle record);

    TopAndCoinArticle selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TopAndCoinArticle record);

    int updateByPrimaryKey(TopAndCoinArticle record);

    /**
     * 修改帖子类型
     * @param articleId
     * @param status
     */
    int updateArticleType(long articleId, byte status);

    /**
     * 查看帖子类型
     */
    Byte getArticleType(long articleId);

    /**
     * 获取置顶/金币帖子
     */
    TopAndCoinArticle getByArticleId(Long articleId);

}